public class Test {
    public static int max(int a,int b){
        return a > b ? a : b;
    }
    public static double max(double c1,double d1,double e1){
        double tem = 1.0;
        if(c1 > d1){
             tem = c1;
        }else{
             tem = d1;
        }
        if(tem>e1){
            return tem;
        }else{
            return e1;
        }
    }
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        double c = 2.5;
        double d = 2.3;
        double e = 2.1;
        System.out.println(max(a,b));
        System.out.println(max(c,d,e));
    }
}
